package com.mp.approvalreq.entity;

public class UsualUser{
    
    private Integer contactId;
    private String imageName;
    private String userName;
    
    public Integer getContactId() {
        return contactId;
    }

    public void setContactId(Integer contactId) {
        this.contactId = contactId;
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof UsualUser){
            UsualUser uu = (UsualUser) obj;
            return contactId.intValue() == uu.getContactId().intValue();
        }
        return super.equals(obj);
    }

    @Override
    public int hashCode() {
        return contactId.hashCode();
    }
}
